<?php
$config_module = "{$_SERVER["DOCUMENT_ROOT"]}/modules/config/index.php";
$data_module = "{$_SERVER["DOCUMENT_ROOT"]}/modules/menu/data.php";

include "$config_module";
include "$data_module";

$sub_menu_name = $_REQUEST["sub_menu_name"];

echo "<div>{$sub_menu_name}</div>";


foreach ($navbar[$sub_menu_name] as $key => $menu_data) {
	echo<<<STOP
	<fieldset id=$key ">
	<legend>{$key}</legend>
	<input type="text" value="{$menu_data["text"]}">
	<input type="text" value="{$menu_data["url"]}">
	</fieldset>
STOP;
}


?>